package com.biz.primus.ms.stock.stream;

import com.biz.primus.base.constant.StockStreamConstant;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;

/**
 * StockChangeSource
 *
 * @author JKLiues
 * @date 2017年11月18日
 */
public interface StockChangeSource {

    @Output(StockStreamConstant.STOCK_CHANGE)
    MessageChannel change();

    @Output(StockStreamConstant.STOCK_CHANGE_ALL)
    MessageChannel changeAll();
}